/*******************************************************************/
/* @ All Rights Reserved Copyright (C) 2014 broada,Co.,Ltd.        */
/*                                                                 */
/*  NAME      = frconfig.h                                         */
/*  NOTE      =                                                    */
/*  DATE      = 2014/11/04 by geyh                                 */
/*******************************************************************/

#ifndef __FRCONFIG_H_
#define __FRCONFIG_H_

#define APM_FRCONFIG_SUCC       0
#define APM_FRCONFIG_NO_FIND    1
#define APM_FRCONFIG_MEM_ERR    2

FILE *frconfig_open(char *p_filename);
void frconfig_close(FILE *fp);
int frconfig_string(FILE* fp, char *p_key, char **pp_value);
int frconfig_int(FILE* fp, char *p_key, int *p_i_value);
int frconfig_get_string(char *p_config_name, char *p_key, char **pp_value);
int frconfig_get_int(char *p_config_name, char *p_key, int *p_i_value);
int frconfig_set_string(char *p_config_name, char *p_key, char *p_value);
int frconfig_set_int(char *p_config_name, char *p_key, int i_value);

#endif